﻿using System.Runtime.Serialization;
using System.Collections.Generic;

namespace Silverlight.Training.Server.Common.Feedbacks
{
    [DataContract(Namespace = ServiceConstants.ServiceNamespace, Name = "{0}CollectionFeedback")]
    public class CollectionFeedback<T> : Feedback
    {
        [DataMember]
        public List<T> Data { get; set; }

        public CollectionFeedback(string message, bool isSuccessful, List<T> data)
            : base(message, isSuccessful)
        {
            Data = data;
        }
    }
}
